-- GENERATED SPELL FOR [Stonesplinter Scout] --


function spell0_1162(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1162', 500, 1)
end

function Sorts_1162(pUnit, Event)
local choix_sorts_1162 = math.random(0, 0)
if choix_sorts_1162 == 0 then
pUnit:RegisterEvent('spell0_1162', 1, 1)
end
end

function mob1162_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1162', math.random(1500, 3000), 1)
end

function mob1162_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1162_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1162_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1162, 1, 'mob1162_Action')
RegisterUnitEvent(1162, 2, 'mob1162_Leave')
RegisterUnitEvent(1162, 3, 'mob1162_Kill')
RegisterUnitEvent(1162, 4, 'mob1162_Die')
